﻿/*CREATE TRIGGER [dbo].[Modulos_DeletionTrigger] 
    ON [Modulos] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[Modulos_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[ModuloGuid] = [Modulos_Tombstone].[ModuloGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[Modulos_Tombstone] 
    ([ModuloGuid], DeletionDate)
    SELECT [ModuloGuid], GETUTCDATE()
    FROM deleted 
END*/